package cn.stylefeng.guns.modular.school.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.school.entity.StudentInfo;
import cn.stylefeng.guns.modular.school.entity.TeacherInfo;
import cn.stylefeng.guns.modular.school.model.params.TeacherInfoParam;
import cn.stylefeng.guns.modular.school.model.result.TeacherInfoResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 教师信息 服务类
 * </p>
 *
 * @author
 * @since 2019-11-04
 */
public interface TeacherInfoService extends IService<TeacherInfo> {

    /**
     * 新增
     *
     * @author
     * @Date 2019-11-04
     */
    void add(TeacherInfoParam param);

    /**
     * 删除
     *
     * @author
     * @Date 2019-11-04
     */
    void delete(TeacherInfoParam param);

    /**
     * 更新
     *
     * @author
     * @Date 2019-11-04
     */
    void update(TeacherInfoParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author
     * @Date 2019-11-04
     */
    TeacherInfoResult findBySpec(TeacherInfoParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author
     * @Date 2019-11-04
     */
    List<TeacherInfoResult> findListBySpec(TeacherInfoParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author
     * @Date 2019-11-04
     */
    LayuiPageInfo findPageBySpec(TeacherInfoParam param);

    TeacherInfo findByCode(String code);
}
